#include "bits/stdc++.h"

using namespace std;
string convert_num(double num){
  
    string str = to_string(num);
    auto pos = str.find(".");
    int start_pos = str.length();
    if(pos != str.npos){
        start_pos = pos;
    }
    for(int index =(int) start_pos-3; index > 0; index -= 3){
        str.insert(index, ",");
    }
    return str;
}
int main()
{
    cout<< convert_num(1234000.1) <<endl;
    return 0;
}
